import React from 'react'
import RcMenu, { MenuItem } from 'rc-menu'

export default class Menu extends React.Component {
	static Item = MenuItem;
	render() {
		const {
			children,
			...props
		} = this.props
		return (
			<RcMenu {...props} prefixCls="x-menu">{children}</RcMenu>
		)
	}
}